package com.sinopec.basemodule.launchcontract

import com.sinopec.basemodule.model.ErrorPalletCodesResultModel
import com.sinopec.basemodule.model.PackSpecsTypeModel
import com.sinopec.basemodule.model.StockInListModel
import com.sinopec.basemodule.model.StockOutListModel
import com.sinopec.basemodule.utils.ARouterManagerUtils
import com.sinopec.basemodule.utils.kotlin.navigationClass

/**
 * 整个项目所有的契约
 */

/**
 * 入库扫码
 */
val UHFInResultLaunch = SetAndGetValueResultContract<StockInListModel, Boolean>(
    SetAndGetValueResultContract.Request.from(GetSetFromIntent.Parcelables()),
    SetAndGetValueResultContract.Response.from(GetSetFromIntent.Boolean),
    ARouterManagerUtils.GOTO_UHF_IN_ACTIVITY.navigationClass
)

/**
 * 出库扫码
 */
val UHFOutResultLaunch = SetAndGetValueResultContract<StockOutListModel, Boolean>(
    SetAndGetValueResultContract.Request.from(GetSetFromIntent.Parcelables()),
    SetAndGetValueResultContract.Response.from(GetSetFromIntent.Boolean),
    ARouterManagerUtils.GOTO_UHF_OUT_ACTIVITY.navigationClass
)

/**
 * 错误托盘校验结果界面
 */
val ErrorPalletCodesResultLaunch =
    SetAndGetValueResultContract<ErrorPalletCodesResultModel, Boolean>(
        SetAndGetValueResultContract.Request.from(GetSetFromIntent.Parcelables()),
        SetAndGetValueResultContract.Response.from(GetSetFromIntent.Boolean),
        ARouterManagerUtils.GOTO_MAIN_ERROR_CODE_LIST_ACTIVITY.navigationClass
    )

/**
 * 日常盘库扫码
 */
val UHFDailyInventoryResultLaunch = SetAndGetValueResultContract<PackSpecsTypeModel, Boolean>(
    SetAndGetValueResultContract.Request.from(GetSetFromIntent.Parcelables()),
    SetAndGetValueResultContract.Response.from(GetSetFromIntent.Boolean),
    ARouterManagerUtils.GOTO_UHF_DAILY_INVENTORY_ACTIVITY.navigationClass
)

